package com.sys.entity;

import java.io.Serializable;
import java.util.Date;
import com.bhudy.annotation.PrimaryKey;

/**
 * @Author com.bhudy
 * @Description 用户管理
 * @Date 2019-10-30 23:09:37
 */
public class SysUser implements Serializable {

    public final static int statusCode0 = 0; // 正常
    public final static int statusCode1 = 1; // 删除
    public final static int statusCode2 = 2; // 停用，可以重置密码
    public final static int statusCode3 = 3; // 冻结，可以联系管理员改成正常


    @PrimaryKey
    private Long userId;    //用户编码
    private String loginCode;    //登录账号
    private String userName;    //用户昵称
    private String password;    //登录密码
    private Long sysPersonalId; // 关联员工
    private String email;    //电子邮箱
    private String mobile;    //手机号码
    private Integer sex;    //用户性别
    private String salt;    //加密密码的盐
    private String avatar;    //头像路径
    private String sign;    //个性签名
    private String wxOpenid;    //绑定的微信号
    private String tasOpenid; //公众号openId
    private String appletOpenid; //小程序openId
    private String mobileImei;    //绑定的手机串号
    private Integer pwdSecurityLevel;    //密码安全级别（0初始 1弱 2中 3强）
    private Date pwdUpdateDate;    //密码最后更新时间
    private String lastLoginIp;    //最后登陆IP
    private Date lastLoginDate;    //最后登陆时间
    private Date freezeDate;    //冻结时间
    private String freezeCause;    //冻结原因
    private Integer status;    //状态（0正常 1删除 2停用 3冻结）
    private Long createBy;    //创建者
    private Date createDate;    //创建时间
    private Long updateBy;    //更新者
    private Date updateDate;    //更新时间
    private String remark;    //备注信息

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getLoginCode() {
        return loginCode;
    }

    public void setLoginCode(String loginCode) {
        this.loginCode = loginCode;
     }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
     }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
     }

    public Long getSysPersonalId() {
        return sysPersonalId;
    }

    public void setSysPersonalId(Long sysPersonalId) {
        this.sysPersonalId = sysPersonalId;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
     }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
     }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
     }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
     }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
     }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
     }

    public String getWxOpenid() {
        return wxOpenid;
    }

    public void setWxOpenid(String wxOpenid) {
        this.wxOpenid = wxOpenid;
     }

    public String getTasOpenid() {
        return tasOpenid;
    }

    public void setTasOpenid(String tasOpenid) {
        this.tasOpenid = tasOpenid;
    }

    public String getAppletOpenid() {
        return appletOpenid;
    }

    public void setAppletOpenid(String appletOpenid) {
        this.appletOpenid = appletOpenid;
    }

    public String getMobileImei() {
        return mobileImei;
    }

    public void setMobileImei(String mobileImei) {
        this.mobileImei = mobileImei;
     }

    public Integer getPwdSecurityLevel() {
        return pwdSecurityLevel;
    }

    public void setPwdSecurityLevel(Integer pwdSecurityLevel) {
        this.pwdSecurityLevel = pwdSecurityLevel;
     }

    public Date getPwdUpdateDate() {
        return pwdUpdateDate;
    }

    public void setPwdUpdateDate(Date pwdUpdateDate) {
        this.pwdUpdateDate = pwdUpdateDate;
     }

    public String getLastLoginIp() {
        return lastLoginIp;
    }

    public void setLastLoginIp(String lastLoginIp) {
        this.lastLoginIp = lastLoginIp;
     }

    public Date getLastLoginDate() {
        return lastLoginDate;
    }

    public void setLastLoginDate(Date lastLoginDate) {
        this.lastLoginDate = lastLoginDate;
     }

    public Date getFreezeDate() {
        return freezeDate;
    }

    public void setFreezeDate(Date freezeDate) {
        this.freezeDate = freezeDate;
     }

    public String getFreezeCause() {
        return freezeCause;
    }

    public void setFreezeCause(String freezeCause) {
        this.freezeCause = freezeCause;
     }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
     }

    public Long getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Long createBy) {
        this.createBy = createBy;
     }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
     }

    public Long getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Long updateBy) {
        this.updateBy = updateBy;
     }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
     }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
     }

}
